package com.zkthink.ceres.pay.callback.service;

import com.zkthink.base.R;
import com.zkthink.ceres.pay.entity.AliReturnPayBean;
import com.zkthink.clh.order.entity.ChlOrder;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *      支付服务
 * </p>
 *
 * @author vivi.huang
 * @since 2020/5/19
 */
public interface PayCallBackService {


    /**
     * 处理支付成功通知回调
     * @param request
     * @return
     */
    String handleOrderNotifyCallBack(HttpServletRequest request);

    /**
     * 处理退款通知回调
     * @param request
     * @return
     */
    String handleRefundNotifyCallBack(HttpServletRequest request);

    R wxSelectOrder(String id);


    /**
     * 支付宝支付成功通知回调
     *
     * @param req
     * @return
     */
    String handleOrderNotifyCallBackaliPay(HttpServletResponse response, AliReturnPayBean returnPay, HttpServletRequest req);
}
